// 导入所有接口
import apiList from '../../api/index'

const install = Vue => {
    if (install.installed)
        return;
    install.installed = true;

    Object.defineProperties(Vue.prototype, {
        // 注意哦，此处挂载在Vue原型的$api对象上
        $api: {
            get() {
                return apiList
            }
        }
    })
}
export default install